package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"hospital/controllers"
)

func init() {
	//POST
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.DoctorController{}, "POST:Login")
	beego.Router("/upload", &controllers.PatientController{}, "POST:Upload")
	beego.Router("/add", &controllers.PatientController{}, "POST:Add")

	//GET
	beego.Router("/list", &controllers.PatientController{}, "GET:List")
	beego.Router("/info", &controllers.PatientController{}, "GET:Info")
}
